package com.android.model.entity.eventbus;

/**
 * Created by TenFace
 * on 2017/8/8.
 */

public class BusUtils {


    public static final String ADD_STOCK_TO_SEARCH_HISTORY = "add_stock_to_search_history";

    public static class AddStockState {
        public String toWhere = "";
        public String stockCode = "";
        public boolean attention = false;
        public String clearTrade = "";

        public AddStockState(String toWhere, String stockCode, boolean attention) {
            this.toWhere = toWhere;
            this.stockCode = stockCode;
            this.attention = attention;
        }

        public AddStockState(String clearTrade) {
            this.clearTrade = clearTrade;
        }

        @Override
        public String toString() {
            return "AddStockState{" +
                    "toWhere='" + toWhere + '\'' +
                    ", stockCode='" + stockCode + '\'' +
                    ", attention=" + attention +
                    ", clearTrade='" + clearTrade + '\'' +
                    '}';
        }
    }

    public static class ChartValueSelect {
        public boolean isSelect = true;

        public ChartValueSelect(boolean isSelect) {
            this.isSelect = isSelect;
        }

    }

    /***
     * 订单状态
     */
    public static class OrderStatus {
        public boolean isRevoked = true;

        public OrderStatus(boolean isRevoked) {
            this.isRevoked = isRevoked;
        }

    }


    public static class refreshStatus {
        public boolean canRefresh = true;

        public refreshStatus(boolean canRefresh) {
            this.canRefresh = canRefresh;
        }

    }

    public static class KLineRefreshStatus {
        public boolean canRefresh = true;

        public KLineRefreshStatus(boolean canRefresh) {
            this.canRefresh = canRefresh;
        }

    }


    public static class TransformColor{
        private int beginColor;
        private int endColor;

        public TransformColor(){

        }

        public int getBeginColor() {
            return beginColor;
        }

        public void setBeginColor(int beginColor) {
            this.beginColor = beginColor;
        }

        public int getEndColor() {
            return endColor;
        }

        public void setEndColor(int endColor) {
            this.endColor = endColor;
        }
    }

    public static class SwitchLanguage{

        private String language;

        public SwitchLanguage(){

        }

        public String getLanguage() {
            return language;
        }

        public void setLanguage(String language) {
            this.language = language;
        }
    }

}
